package com.csiec.clock.activity.daka;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import androidx.lifecycle.ViewModelProvider;

import android.os.Bundle;

import com.csiec.clock.R;
import com.csiec.clock.databinding.ActivityJoinClockBinding;
import com.csiec.clock.view.model.JoinClockViewModel;

public class JoinClockActivity extends AppCompatActivity {

    private final String TAG = JoinClockActivity.class.getSimpleName();
    private ActivityJoinClockBinding binding;
    private JoinClockViewModel joinClockViewModel;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = DataBindingUtil.setContentView(this, R.layout.activity_join_clock);

        joinClockViewModel = new ViewModelProvider(this).get(JoinClockViewModel.class);
        binding.setJoinClockViewModel(joinClockViewModel);
        binding.setLifecycleOwner(this);

        joinClockViewModel.init(this, binding);
    }
}